package com.yzh.zhipu;


import com.yzh.zhipu.model.ChatRequest;
import com.yzh.zhipu.model.ChatResponse;
import com.yzh.zhipu.model.ImageRequest;
import com.yzh.zhipu.model.ImageResponse;
import io.reactivex.Single;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * 本类暂无使用
 */
public interface ChatGlmApi {
    java.lang.String v3_chat = "api/paas/v3/model-api/chatglm_turbo/sse-invoke";
    java.lang.String v3_chat_sync = "api/paas/v3/model-api/chatglm_turbo/invoke";
    java.lang.String v4 = "api/paas/v4/chat/completions";
    java.lang.String cogview3 = "api/paas/v4/images/generations";

    @POST(v3_chat_sync)
    Single<ChatResponse> completions(@Body ChatRequest request);

    @POST(cogview3)
    Single<ImageResponse> genImage(@Body ImageRequest request);
}

